package com.cwl.pattern.观察者模式;

/**
 * @program: pattern
 * @description: 具体的目标
 * @author: ChenWenLong
 * @create: 2019-07-09 16:50
 **/
public class ConcreteSubject extends Subject{

    //唤醒观察者
    public void notifyObserver() {
        System.out.println("具体目标发生改变...");
        System.out.println("--------------");

        for(Object obs:observers) {
            ((Observer)obs).response();
        }
    }
}
